# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/2/18 22:33

# 编写父类 Student
class Student:
    name = None
    age = None
    __score = None

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def set_score(self, score):
        self.__score = score

    def get_score(self):
        return self.__score

    def __str__(self):
        return f"name = {self.name}, age = {self.age}, score = {self.__score}"

# 小学生类
class Pupil(Student):

    def testing(self):
        print("小学生在考小学数学")

# 大学生类
class Graduate(Student):

    def testing(self):
        print("大学生在考高等数学")